n = eval(input("请输入菱形行数："))+1
#上半部分
for i in range(1,n):
    for j in range(1,n-i):
        print(" ",end='')
    for k in range(1,2*i):
        if k == 1 or k == 2*i-1:
            print("*",end='')
        else:
            print(" ",end='')
    print()
#下半部分
n-=1
for i in range(1,n):
    for j in range(1,i+1):
        print(" ",end='')
    for k in range(1, 2*(n-i)):
        if k == 1 or k == 2*(n-i)-1:
            print("*", end='')
        else:
            print(" ", end='')
    print()

if True:
    pass

